package com.crayfish.quduo.presenter.contract;

import com.crayfish.quduo.base.BasePresenter;
import com.crayfish.quduo.base.BaseView;
import com.crayfish.quduo.model.UserBean;

/**
 * Created by crayfish on 2017/3/2.
 */
public interface LoginContract {
    interface View extends BaseView{
        void successLogin(UserBean userBean);
        void loginOrRegister(boolean isExist);
        void successRegister();
    }
    interface Presernter extends BasePresenter<View>{
        void login();
        void register();
        void searchUser(String username);
    }
}
